#include <cstdio>
#include <string>
#include <cstring>
#include <iostream>
using namespace std;

struct User{
	int type;
    int nextDis;
    int lastDis;
    int blood;
    bool ownZgln;
    vector<char> card;
}user[maxn];

int fzNum;
vector<char> sta;
// p : 桃; k : 杀; d : 闪; 
// f : 决斗; n : 南猪入侵; w : 万箭齐发; j : 无懈可击; 
// z : 猪哥连弩 
void init(){
    int playerNum, cardNum;
    scanf("%d%d", &playerNum, &cardNum);
    for(int i = 1; i <= playerNum; i++){
        user[i].nextDis = 1;
        user[i].lastDis = i - 1;
    }
    user[n].nextDis = 1,user[1].lastDis = n;
    for(int i = 1; i <= playerNum; i++){
        string type; cin >> type;
        if(type[0] == 'F') {
            user.type = 2;
            fzNum ++;
        }
        else if(type[0] == 'Z') user.type = 1;
        else (type[0] == 'M') user.type = 0;
        string a, b, c, d;
	   	cin >> a >> b >> c >> d;
        user[i].card.push_back(a);
        user[i].card.push_back(b);
        user[i].card.push_back(c);
        user[i].card.push_back(d);
        user[i].blood = 4;
        user[i].ownZgln = false;
    }
	user[1].type = 0;
	for(int i = 1; i <= cardNum; i++){
        char x; cin >> x;
        sta.push_back(x);
    }
}



void mopai(int now) {
    user[now].card.push_back = sta.front();
    sta.pop();
}

void kill(int x,int y) {
    for(int i = 1; i <= a[y].card.size();i++){
        if(a[y].card[i] == "P"){
            a[y].card[i] = "Y";
        }

    }

}



int main() {

}
